import request from '../../utils/request'

//日报- 获取课程列表
const getCourses = (class_id, date) => {
  return request({
    url: '/api/courses?class_id=' + class_id+ '&date=' + date,
    method: 'GET'
  })
}
//日报- 获取食谱列表
const getRecipes = (date) => {
  return request({
    url: '/api/recipes?date=' + date,
    method: 'GET'
  })
}
//日报- 获取学习列表
const getLearnings = (student_id,date) => {
  return request({
    url: '/api/learnings/students/' + student_id+'?date=' + date,
    method: 'GET'
  })
}
//日报- 获取生活列列表
const getGardens = (student_id, date) => {
  return request({
    url: '/api/gardens/students/' + student_id + '?date=' + date,
    method: 'GET'
  })
}
//月报
const getMonthreports = (student_id, date) => {
  return request({
    url: '/api/monthreports/students/' + student_id + '?date=' + date,
    method: 'GET'
  })
}
//学期报
const getTermreports = (studentid, date, type) => {
  return request({
    url: '/api/termreports/students/'+studentid+'?date='+date+'&type='+type,
    method: 'GET'
  })
}
module.exports = {
  getCourses,
  getRecipes,
  getLearnings,
  getGardens,
  getMonthreports,
  getTermreports
}